import React, { useState } from 'react'
import { Button } from 'antd';
import BaseModal from '../../../hooks/modal/v1/BaseModal';


export const MyDialogTest = () => {

  const [parentVisable, setParentVisable] = useState(false);

  const showDialog = (isOpen) => {
    setParentVisable(isOpen);
  }

  return (
    <div>
      <Button type="primary" onClick={() => showDialog(true)}>点我弹框 -- V1</Button>
      <BaseModal vis={parentVisable} showModal={(isOpen) => {showDialog(isOpen)}}></BaseModal>
    </div>
  )
}